package com.sykj.cloud.system.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sykj.cloud.common.core.annotation.Excel;
import com.sykj.cloud.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 用户日志对象 log_user
 *
 * @author mr.will
 * @date 2021-03-30
 */
public class LogUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String guid;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 系统定义id */
    @Excel(name = "系统定义id")
    private String systemDefineId;

    /** 应用id */
    @Excel(name = "应用id")
    private String applicationId;

    /** 站点id */
    @Excel(name = "站点id")
    private String siteId;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** 会员id */
    @Excel(name = "会员id")
    private String memberId;

    /** 登录名称 */
    @Excel(name = "登录名称")
    private String loginName;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    private Date operateTime;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String deviceType;

    /** 设备id */
    @Excel(name = "设备id")
    private String deviceId;

    /** 操作系统类型 */
    @Excel(name = "操作系统类型")
    private String deviceOs;

    /** 浏览器类型 */
    @Excel(name = "浏览器类型")
    private String browserType;

    /** 浏览器代理信息 */
    private String userAgent;


    /** 数据对象类型Id */
    @Excel(name = "数据对象类型Id")
    private String objectDefineId;

    /** 数据对象ID */
    @Excel(name = "数据对象ID")
    private String objectId;

    /** 数据对象名称 */
    @Excel(name = "数据对象名称")
    private String objectName;

    /** 业务类型 */
    @Excel(name = "业务类型")
    private Integer operateType;

    /** 操作地点 */
    @Excel(name = "操作地点")
    private String operateLocation;

    /** 方法名称 */
    @Excel(name = "方法名称")
    private String method;

    /** 请求方式 */
    @Excel(name = "请求方式")
    private String requestMethod;

    /** 请求URL */
    @Excel(name = "请求URL")
    private String operUrl;

    /** IP地址 */
    @Excel(name = "IP地址")
    private String ipAddress;

    /** 请求参数 */
    @Excel(name = "请求参数")
    private String operateParam;

    /** 返回参数 */
    @Excel(name = "返回参数")
    private String jsonResult;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 删除人 */
    @Excel(name = "删除人")
    private String deleteBy;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deleteTime;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer deleted;

    public void setGuid(String guid)
    {
        this.guid = guid;
    }

    public String getGuid()
    {
        return guid;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setSystemDefineId(String systemDefineId)
    {
        this.systemDefineId = systemDefineId;
    }

    public String getSystemDefineId()
    {
        return systemDefineId;
    }
    public void setApplicationId(String applicationId)
    {
        this.applicationId = applicationId;
    }

    public String getApplicationId()
    {
        return applicationId;
    }
    public void setSiteId(String siteId)
    {
        this.siteId = siteId;
    }

    public String getSiteId()
    {
        return siteId;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }


    public String getUserAgent() {
        return userAgent;
    }

    public void setUserAgent(String userAgent) {
        this.userAgent = userAgent;
    }

    public String getUserId()
    {
        return userId;
    }
    public void setMemberId(String memberId)
    {
        this.memberId = memberId;
    }

    public String getMemberId()
    {
        return memberId;
    }
    public void setLoginName(String loginName)
    {
        this.loginName = loginName;
    }

    public String getLoginName()
    {
        return loginName;
    }
    public void setOperateTime(Date operateTime)
    {
        this.operateTime = operateTime;
    }

    public Date getOperateTime()
    {
        return operateTime;
    }
    public void setDeviceType(String deviceType)
    {
        this.deviceType = deviceType;
    }

    public String getDeviceType()
    {
        return deviceType;
    }
    public void setDeviceId(String deviceId)
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId()
    {
        return deviceId;
    }
    public void setDeviceOs(String deviceOs)
    {
        this.deviceOs = deviceOs;
    }

    public String getDeviceOs()
    {
        return deviceOs;
    }
    public void setBrowserType(String browserType)
    {
        this.browserType = browserType;
    }

    public String getBrowserType()
    {
        return browserType;
    }
    public void setObjectDefineId(String objectDefineId)
    {
        this.objectDefineId = objectDefineId;
    }

    public String getObjectDefineId()
    {
        return objectDefineId;
    }
    public void setObjectId(String objectId)
    {
        this.objectId = objectId;
    }

    public String getObjectId()
    {
        return objectId;
    }
    public void setObjectName(String objectName)
    {
        this.objectName = objectName;
    }

    public String getObjectName()
    {
        return objectName;
    }
    public void setOperateType(Integer operateType)
    {
        this.operateType = operateType;
    }

    public Integer getOperateType()
    {
        return operateType;
    }
    public void setOperateLocation(String operateLocation)
    {
        this.operateLocation = operateLocation;
    }

    public String getOperateLocation()
    {
        return operateLocation;
    }
    public void setMethod(String method)
    {
        this.method = method;
    }

    public String getMethod()
    {
        return method;
    }
    public void setRequestMethod(String requestMethod)
    {
        this.requestMethod = requestMethod;
    }

    public String getRequestMethod()
    {
        return requestMethod;
    }
    public void setOperUrl(String operUrl)
    {
        this.operUrl = operUrl;
    }

    public String getOperUrl()
    {
        return operUrl;
    }
    public void setIpAddress(String ipAddress)
    {
        this.ipAddress = ipAddress;
    }

    public String getIpAddress()
    {
        return ipAddress;
    }
    public void setOperateParam(String operateParam)
    {
        this.operateParam = operateParam;
    }

    public String getOperateParam()
    {
        return operateParam;
    }
    public void setJsonResult(String jsonResult)
    {
        this.jsonResult = jsonResult;
    }

    public String getJsonResult()
    {
        return jsonResult;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setDeleteBy(String deleteBy)
    {
        this.deleteBy = deleteBy;
    }

    public String getDeleteBy()
    {
        return deleteBy;
    }
    public void setDeleteTime(Date deleteTime)
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime()
    {
        return deleteTime;
    }
    public void setDeleted(Integer deleted)
    {
        this.deleted = deleted;
    }

    public Integer getDeleted()
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("guid", getGuid())
            .append("name", getName())
            .append("systemDefineId", getSystemDefineId())
            .append("applicationId", getApplicationId())
            .append("siteId", getSiteId())
            .append("userId", getUserId())
            .append("memberId", getMemberId())
            .append("loginName", getLoginName())
            .append("operateTime", getOperateTime())
            .append("deviceType", getDeviceType())
            .append("deviceId", getDeviceId())
            .append("deviceOs", getDeviceOs())
            .append("browserType", getBrowserType())
            .append("objectDefineId", getObjectDefineId())
            .append("objectId", getObjectId())
            .append("objectName", getObjectName())
            .append("operateType", getOperateType())
            .append("operateLocation", getOperateLocation())
            .append("method", getMethod())
            .append("requestMethod", getRequestMethod())
            .append("operUrl", getOperUrl())
            .append("ipAddress", getIpAddress())
            .append("operateParam", getOperateParam())
            .append("jsonResult", getJsonResult())
            .append("description", getDescription())
            .append("deleteBy", getDeleteBy())
            .append("deleteTime", getDeleteTime())
            .append("deleted", getDeleted())
            .toString();
    }
}
